﻿using System.IO;

namespace TechMadeira.Core.Logging
{
    public class FileRecorder : IRecorder
    {
        public FileRecorder( string aFileName )
        {
            Stream = new StreamWriter( aFileName ) { AutoFlush = true};
        }

        private StreamWriter Stream { get; set; }

        public void Record( string aFormat, params object[] aArgs )
        {
            Stream.WriteLine( aFormat, aArgs );
        }
    }
}
